package com.soft.collateral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.soft.collateral.entity.Collateral;
import com.soft.collateral.entity.CollateralType;
import com.soft.collateral.vo.PageQueryVO;

import java.util.List;

public interface CollateralService extends IService<Collateral> {
    List<Collateral> listAll();
    Page<Collateral> pageQuery(PageQueryVO pageQueryVO);
    Collateral getByIdWithDetails(Integer id);
    boolean saveCollateral(Collateral collateral);
    boolean updateCollateral(Collateral collateral);
    boolean removeByIdWithDetails(Integer id);
    List<CollateralType> getAllCollateralTypes();
}
